<?php /* Smarty version Smarty-3.1.14, created on 2013-07-25 13:27:12
         compiled from "libs\Smarty\templates\lista_usuarios.tpl" */ ?>
<?php /*%%SmartyHeaderCode:80251f127b07dd6d2-80311110%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8c679228de4c9ada29d1de0527dd57e291af562d' => 
    array (
      0 => 'libs\\Smarty\\templates\\lista_usuarios.tpl',
      1 => 1374753444,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '80251f127b07dd6d2-80311110',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'titulo' => 0,
    'usuario' => 0,
    'perfil' => 0,
    'data_cadastro' => 0,
    'idusuario' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51f127b0895f06_89861808',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51f127b0895f06_89861808')) {function content_51f127b0895f06_89861808($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars("setup", 'local'); ?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['titulo']->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>$_tmp1), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="container">
	
	Novo: <img src='libs/imagens/add.png' alt='::Adicionar::' onclick='location.href="usuario.php?action=addUsuario"' />
	<table class='table table-striped'>
		<caption>Lista de Usuários</caption>
		<thead>
			<th>Nome</th>
			<th>Perfil</th>
			<th>Data de Cadastro</th>
			<th>Editar</th>
			<th>Deletar</th>
		</thead>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['usuario']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
		<tbody>
		<tr>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['usuario']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['perfil']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['data_cadastro']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td align='center'>
				<img src='libs/imagens/edit.png' alt='::Editar::' onclick='location.href="usuario.php?idusuario=<?php echo $_smarty_tpl->tpl_vars['idusuario']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
&action=editUsuario"' />
			</td>
			<td align='center'>
				<img src='libs/imagens/delete.png' alt='::Deletar::' onclick='location.href="usuario.php?idusuario=<?php echo $_smarty_tpl->tpl_vars['idusuario']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
&action=delUsuario"'/>
			</td>
		</tr>
		</tbody>
		<?php endfor; endif; ?>
	</table>
	
	
</div> <!-- /container -->



    
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



    
<?php }} ?>